import request from '@/utils/request'

/** 账户列表 */
export function capitalList (data) {
  return request({
    url: '/capital/list',
    method: 'post',
    data
  })
}

/** 账户增加 */
export function capitalAdd(data) {
  return request({
    url: '/capital/add',
    method: 'post',
    data
  })
}

/** 账户编辑 */
export function capitalEdit(data) {
  return request({
    url: '/capital/edit',
    method: 'post',
    data
  })
}


// 客户下拉列表
export function capitalClientList(params) {
  return request({
    url: '/client/list/all',
    method: 'get',
    params
  })
}

// 补录
export function capitalAddRecord(data) {
  return request({
    url: '/capital/addition/record',
    method: 'post',
    data
  })
}


// 导出余额
export function exportCapitalList(data) {
  return request({
    url: '/capital/export',
    method: 'post',
    data,
    responseType: 'blob'
  })
}



// 资金明细列表
export function capitalFlowList(data) {
  return request({
    url: '/capital/flow/list',
    method: 'post',
    data
  })
}
